<?php
error_reporting(0);
$isadmin=1; 
include '../comm/config.php';
include '../comm/checkpostandget.php';
include 'check.php';
$webname=$_POST['webname']; 
$url=$_POST['url']; 
$wz=$_POST['wz']; 
$pic=$_POST['picname']; 
$sj= date("Y-m-d H:i:s");  

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
     die(ERR_DB);
}
mysql_select_db($dbname);

mysql_query("set names utf8");

$q = "insert into ".$BIAOTOU."yqlj (webname,url,wz,addtime,pic,leibie) values('".$webname."','".$url."',".$wz.",'".$sj."','".$pic."',1)";
mysql_query($q);

header('Location: hzhblist.php');     

mysql_close($link);

?>
